package gg.ui.application;

import gg.ui.view.GView;

import javax.swing.JFrame;
import javax.swing.JPanel;

import com.google.inject.Inject;

public class GAppWindow {

    @Inject
    JFrame baseFrame;

    @Inject
    JPanel basePanel;

    GView baseView;
    
    @Inject
    public void injectView(@ApplicationBaseView GView view) {
        
        baseView = view;
        
        baseView.layout(basePanel);
        baseFrame.setContentPane(basePanel);
    }

    public JFrame getBaseFrame() {
        return baseFrame;
    }

    public JPanel getBasePanel() {
        return basePanel;
    }

    public GView getBaseView() {
        return baseView;
    }
    
}
